#include <QDebug>
#include <QObject>
#include <QtDBus/QDBusConnection>
#include <QtDBus/QDBusError>
class CTestDbus : public QObject {
    Q_OBJECT
    Q_CLASSINFO( "D-Bus Interface", "com.lanhai.CTestDbus" )
public:
    explicit CTestDbus( QObject* parent = nullptr ) : QObject( parent ) {}
public slots:
    QString testString( QString name ) {
        QString str = "testString:" + name;
        qDebug() << "Server:" << str;
        emit testSignal( 9 );
        return str;
    }
signals:
    void testSignal( int );
};
